<?php

namespace app\common\model\system;
use app\common\model\BaseModel;

class SystemGroupData extends BaseModel
{

    public static function tablePK(): ?string
    {
        return 'group_data_id';
    }

    public static function tableName(): string
    {
        return 'system_group_data';
    }

    public static function getValueAttr($val)
    {
        return json_decode($val, true);
    }

    public static function setValueAttr($val)
    {
        return json_encode($val);
    }
}